#pragma once

class Config
{
public:
    Config();
    ~Config() = default;

    void parseArgs(int argc, char* argv[]);

    const int port() const  { return port_; }
    const int logWriteMode() const { return logWriteMode_; } 
    const int trigMode() const  { return trigMode_; }
    const int listenTrigMode() const { return listenTrigMode_; }
    const int connTrigMode() const { return connTrigMode_; }
    const int optLinger() const { return optLinger_; }
    const int sqlNums() const { return sqlNums_; }
    const int threadNums() const { return threadNums_; }
    const int closeLog() const { return closeLog_; }
    const int actorModel() const { return actorModel_; }
private:
    int port_;
    int logWriteMode_; 
    int trigMode_;
    int listenTrigMode_;
    int connTrigMode_;
    int optLinger_;
    int sqlNums_;
    int threadNums_;
    int closeLog_;
    int actorModel_;
};